package com.wjk.kylin.id.core.spring.boot.autoconfigure;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

/**
 * @author wjk
 */
@ConfigurationProperties(prefix = "kylin.id")
public class KylinIdProperties {
    /**
     * 发号器服务地址
     */
    private List<String> server;

    /**
     *
     */
    private int readTimeout = 60;

    /**
     *
     */
    private int connectTimeout = 60;

    /**
     *
     */
    private int writeTimeout = 60;

    public List<String> getServer() {
        return server;
    }

    public void setServer(List<String> server) {
        this.server = server;
    }

    public int getReadTimeout() {
        return readTimeout;
    }

    public void setReadTimeout(int readTimeout) {
        this.readTimeout = readTimeout;
    }

    public int getConnectTimeout() {
        return connectTimeout;
    }

    public void setConnectTimeout(int connectTimeout) {
        this.connectTimeout = connectTimeout;
    }

    public int getWriteTimeout() {
        return writeTimeout;
    }

    public void setWriteTimeout(int writeTimeout) {
        this.writeTimeout = writeTimeout;
    }


    @Override
    public String toString() {
        return "IdConfigProperties{" +
                ", server=" + server +
                ", readTimeout=" + readTimeout +
                ", connectTimeout=" + connectTimeout +
                ", writeTimeout=" + writeTimeout +
                '}';
    }
}
